package com.olive.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.olive.dto.Order;
import com.olive.remote.OrderServiceRemoteApi;

@RestController
@RequestMapping("/order")
public class OrderController {

	@Autowired
	OrderServiceRemoteApi orderServiceRemoteApi;
	
	@RequestMapping("/findById/{id}")
	public Order findById(@PathVariable("id") Integer id) {
		return orderServiceRemoteApi.findById(id);
	}

}
